CIntake.cs
Code Type: C# Class
Uses Classes: CDataParameterList, CDataSet
Uses PL/SQL Procedures: PCK_INTAKE.GetModuleType, PCK_INTAKE.GetModuleGroupMIDRS, PCK_INTAKE.GetAllModuleRS, PCK_INTAKE.GetAllScorableModuleRS, PCK_INTAKE.GetModuleGroupRS, PCK_INTAKE.GetModuleGroupTypeRS, PCK_INTAKE.GetPatientModulesRS, PCK_INTAKE.GetPatientModulesTxTreeRS, PCK_INTAKE.GetModulesListRS, PCK_INTAKE.AssignPatientModules, PCK_INTAKE.GetPatIntakeAssignedRS, PCK_INTAKE.AssignInitialAssessments, PCK_INTAKE.StartModule, PCK_INTAKE.CompleteModule, PCK_INTAKE.GetIntakeReport, PCK_INTAKE.GetPatIntakeScoresRS, PCK_INTAKE.GetIntakeReportCSVRS, PCK_INTAKE.GetScoreDataStringRS, PCK_INTAKE.GetNextMIDIntakeIDRS, PCK_INTAKE.DeleteInstrument

Lines of Code: 466

public class CIntake

	Methods and properties used to load, display and save instruments 

public CIntake()

	Default construstor 

public CIntake(BaseMaster BaseMstr)

	Construstor that takes a BaseMaster 

public long GetModuleType(BaseMaster BaseMstr,
                              long lMID)

	Get the Type of the Instrument Module. 0 = Normal Instrument 1 = System Instrument 

public DataSet GetModuleGroupMIDDS(BaseMaster BaseMstr,
                                       long lModuleGroupID)

	    get intake modules by group id 

public DataSet GetModuleGroupMIDDS(BaseMaster BaseMstr,
                                       long lModuleGroupID,
                                       string strSearch)

	    get intake modules by group id 

public DataSet GetAllModuleDS(BaseMaster BaseMstr)

	get a dataset of all active modules 

public DataSet GetAllScorableModuleDS(BaseMaster BaseMstr)

	gets all scorable modules 

public DataSet GetModuleGroupDS(BaseMaster BaseMstr,
                                    long lGroupTypeID)

	   get module groups by group type id 

public DataSet GetModuleGroupTypeDS(BaseMaster BaseMstr)

	 get module group types such as domain and clinical setting 

public bool StartModule(string strPatientID,
                                long lMID,
                                long lModGroup,
                                long lIntakeID)

	Begin Intake 

public bool CompleteModule(string strPatientID,
                                long lMID, 
                                long lModGroup,
                                long lIntakeID)

	 

public long GetNextIntakeID(BaseMaster BaseMstr,
                                        string strPatientID,
                                        long lMID)

	Gets the next intake_id for a patient module 

public bool DeleteIntake(string strPatientID,
                             long lMID,
                             long lIntakeID,
                             long lPatPWEventModuleID)

	Reset an instrument as it was never answered. 

	

